package com.kgc.cgapi.pojo;

import com.kgc.cgapi.util.StatusUtil;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class CGBJPojo {
    private int id;
    private String code;

    private String info;
    private int status;
    private String statusStr;

    private String cgxj_code;

    private String create_date;
    private int create_id;
    private String create_name;

    private String modi_date;
    private int modi_id;
    private String modi_name;

    private String address;
    private String get_date;

    private List<CGBJInfo> list;
    private static final SimpleDateFormat FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    @Override
    public String toString() {
        return "CGBJPojo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", info='" + info + '\'' +
                ", status=" + status +
                ", statusStr='" + statusStr + '\'' +
                ", cgxj_code='" + cgxj_code + '\'' +
                ", create_date='" + create_date + '\'' +
                ", create_id=" + create_id +
                ", create_name='" + create_name + '\'' +
                ", modi_date='" + modi_date + '\'' +
                ", modi_id=" + modi_id +
                ", modi_name='" + modi_name + '\'' +
                ", address='" + address + '\'' +
                ", get_date='" + get_date + '\'' +
                ", list=" + list +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        statusStr = StatusUtil.transStatusToStr(status);
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public String getCgxj_code() {
        return cgxj_code;
    }

    public void setCgxj_code(String cgxj_code) {
        this.cgxj_code = cgxj_code;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = FORMAT.format(create_date);
    }

    public int getCreate_id() {
        return create_id;
    }

    public void setCreate_id(int create_id) {
        this.create_id = create_id;
    }

    public String getCreate_name() {
        return create_name;
    }

    public void setCreate_name(String create_name) {
        this.create_name = create_name;
    }

    public String getModi_date() {
        return modi_date;
    }

    public void setModi_date(Date modi_date) {
        this.modi_date = FORMAT.format(modi_date);
    }

    public int getModi_id() {
        return modi_id;
    }

    public void setModi_id(int modi_id) {
        this.modi_id = modi_id;
    }

    public String getModi_name() {
        return modi_name;
    }

    public void setModi_name(String modi_name) {
        this.modi_name = modi_name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGet_date() {
        return get_date;
    }

    public void setGet_date(Date get_date) {
        this.get_date = FORMAT.format(get_date);
    }

    public List<CGBJInfo> getList() {
        return list;
    }

    public void setList(List<CGBJInfo> list) {
        this.list = list;
    }
}
